package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutineStep;
import com.zhijian.medical.entity.vo.request.RoutineStepSearchVo;
import com.zhijian.medical.entity.vo.response.RoutineStepVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutineStepMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutineStep record);

    int insertSelective(RoutineStep record);

    RoutineStep selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutineStep record);

    int updateByPrimaryKey(RoutineStep record);

    int updateStepByNums(String nums, String content, Byte step);

    /**
     * 查询总数
     *
     * @param routineStepSearchVo
     * @return
     */
    int count(RoutineStepSearchVo routineStepSearchVo);

    /**
     * 查询列表
     *
     * @param routineStepSearchVo
     * @return
     */
    List<RoutineStepVo> selectList(RoutineStepSearchVo routineStepSearchVo);

    /**
     * 查询单个
     *
     * @param routineStepSearchVo
     * @return
     */
    RoutineStepVo selectOne(RoutineStepSearchVo routineStepSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutineStepVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routineStepSearchVo
     * @return
     */
    void deleteByCondition(RoutineStepSearchVo routineStepSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutineStep> entities);
}